import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import {router} from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import ECharts from 'vue-echarts/components/ECharts'
//引入ECharts
require('echarts')
Vue.component('chart', ECharts)
ECharts.animation=true;

Vue.use(ElementUI);

Vue.config.productionTip = false

var myAxios = axios.create({
    baseURL: 'http://localhost:9999',
    timeout: 5000,
    withCredentials:true
});
//通过js的原型动态增加一个属性axios
Vue.prototype.axios = myAxios;


new Vue({
    router,
    render: h => h(App),
}).$mount('#app')
